﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace TimeQuest.Base
{
    public class Screen
    {
        #region Constructors

        public Screen()
        {
            GameObjects = new List<GameObject>();
        }

        #endregion

        #region Public Properties

        public Guid ScreenID { get; set; }
        public IList<GameObject> GameObjects { get; set; }
        public int BackGroundTextureID { get; set; }
        public Point TextureOffset { get; set; }
        public Screen LeftScreen { get; set; }
        public Screen RightScreen { get; set; }
        public Screen TopScreen { get; set; }
        public Screen BottomScreen { get; set; }
        public string ScreenDescription { get; set; }

        #endregion

        public void Draw(SpriteBatch sb)
        {
            Texture2D t = ContentHandler.GetTexture(BackGroundTextureID);
            sb.Draw(t,
                new Rectangle(0, 0, 640, 480),
                new Rectangle(640 * TextureOffset.X, 480 * TextureOffset.Y, 640, 480),
                Color.White);
        }
    }
}